import request from "../request";

// 请求导航分类数据
export function getCate() {
  return request({
    url: "/home/category/head",
    method: "get",
  });
}
// 请求品牌数据
export function getBrand(limit = 6) {
  return request({
    url: "home/brand",
    method: "get",
    params: { limit },
  });
}
// 请求轮播图数据
export function getBanner(distributionSite = 1) {
  return request({
    url: "home/banner",
    method: "get",
    params: { distributionSite },
  });
}
// 请求新鲜好物数据
export function getNew(limit = 4) {
  return request({
    url: "home/new",
    method: "get",
    params: { limit },
  });
}
// 请求人气推荐数据
export function getHot() {
  return request({
    url: "home/hot",
    method: "get",
  });
}
// 请求产品区块数据
export function getGoods() {
  return request({
    url: "home/goods",
    method: "get",
  });
}
// 请求最新专题数据
export function getSpecial() {
  return request({
    url: "home/special",
    method: "get",
  });
}
